package repositorio;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the RESPONSABLEPAGO database table.
 * 
 */
@Entity
@NamedQuery(name="Responsablepago.findAll", query="SELECT r FROM Responsablepago r")
public class Responsablepago implements Serializable {
	private static final long serialVersionUID = 1L;
	private int idResponsable;
	private String calle;
	private String codigopostal;
	private String cuitresponsable;
	private String departamento;
	private String numcalle;
	private String piso;
	private String razonsocial;
	private String telefono;
	private Localidad localidad;

	public Responsablepago() {
	}


	@Id
	@SequenceGenerator(name="RESPONSABLEPAGO_IDRESPONSABLE_GENERATOR" )
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="RESPONSABLEPAGO_IDRESPONSABLE_GENERATOR")
	@Column(name="ID_RESPONSABLE")
	public int getIdResponsable() {
		return this.idResponsable;
	}

	public void setIdResponsable(int idResponsable) {
		this.idResponsable = idResponsable;
	}


	public String getCalle() {
		return this.calle;
	}

	public void setCalle(String calle) {
		this.calle = calle;
	}


	public String getCodigopostal() {
		return this.codigopostal;
	}

	public void setCodigopostal(String codigopostal) {
		this.codigopostal = codigopostal;
	}


	public String getCuitresponsable() {
		return this.cuitresponsable;
	}

	public void setCuitresponsable(String cuitresponsable) {
		this.cuitresponsable = cuitresponsable;
	}


	public String getDepartamento() {
		return this.departamento;
	}

	public void setDepartamento(String departamento) {
		this.departamento = departamento;
	}


	public String getNumcalle() {
		return this.numcalle;
	}

	public void setNumcalle(String numcalle) {
		this.numcalle = numcalle;
	}


	public String getPiso() {
		return this.piso;
	}

	public void setPiso(String piso) {
		this.piso = piso;
	}


	public String getRazonsocial() {
		return this.razonsocial;
	}

	public void setRazonsocial(String razonsocial) {
		this.razonsocial = razonsocial;
	}


	public String getTelefono() {
		return this.telefono;
	}

	public void setTelefono(String telefono) {
		this.telefono = telefono;
	}


	//uni-directional many-to-one association to Localidad
	@ManyToOne
	@JoinColumn(name="ID_LOCALIDAD")
	public Localidad getLocalidad() {
		return this.localidad;
	}

	public void setLocalidad(Localidad localidad) {
		this.localidad = localidad;
	}

}